#include "polygon.h"

double Polygon::perimeter() const
{
    return numSides * sideLength;
}

double Polygon::area() const
{
    return (numSides * sideLength * sideLength) / (4 * tan(PI / numSides));
}